Repository navigation
Route single-number questions to custom SQL; benchmark the no-data case - #9
Merged
Merged
Conversation
The first live benchmark scored 28/30. The LLM router sent "How many profiles were recorded in the Arabian Sea?" to the per-float summary table, so the intent descriptions now say that counts, totals, maxima and minima need their own SQL. The Red Sea question failed only because the live data has no Red Sea profiles; FloatChat correctly said so. The case now expects exactly that honest "no profiles were recorded" answer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #8, based on the first live benchmark run, which scored 28/30 (routing 97%, filters 100%, answer checks 97%, median latency 2.6 s, all 30 questions understood by the LLM router).
The two failures:
count-arabianwas a real routing mistake. The LLM sent "How many profiles were recorded in the Arabian Sea?" to the per-float summary table instead of writing a single-count query. The router's intent descriptions now say that a single number (count, total, maximum, minimum) needs custom SQL, and thatfloat_summarymeans one row per float.find-red-seawas a problem with the benchmark, not with FloatChat. The live dataset has no Red Sea & Gulf of Aden profiles. FloatChat applied the filter, found nothing, and said so before showing the closest matches. The case is nowno-data-red-seaand expects that honest answer; a newno_matchexpectation checks that the answer doesn't present other profiles as matches.After merge and redeploy I'll re-run the benchmark and record the score in the README in a separate small PR.
171 tests pass locally and lint is clean.
🤖 Generated with Claude Code